
* Dyadic models for Appendix 
*
* Models to report: 


* Full sample
reg lnimports is3 pta is3pta st1_gdp st2_gdp st1_income st2_income war alliance polity_A polity_B cpi_shock X_ptashare prepta_importa wto1 wto2 st1_veto st2_veto electionyear rig_fill depth_i contig if eu==. , cluster(dyadid) 
estimates store a35
* 
* PTA, no turnover
margins, at(is3 = 0 pta = 1 is3pta = 0)
* PTA, turnover
margins, at(is3 = 1 pta = 1 is3pta = 1)
*
di exp(16.54) - exp(16.48)
di 888010/15248627


* PTA-restricted
reg lnimports is3 st1_gdp st2_gdp st1_income st2_income war ally polity_A polity_B cpi_shock X_ptashare prepta_importa wto1 wto2 st1_veto st2_veto electionyear rig_fill depth_i contig if eu==. & pta ==  1 , cluster(dyadid)
estimates store a35
* 
* no turnover
margins, at(is3 = 0 )
* turnover
margins, at(is3 = 1 )
esttab a34 a35  using tablea8.tex, r2 obslast starlevels(* .1 ** .05 *** .01) cells(b(star fmt(%9.2f)) se(par fmt(%9.2f))) replace

